"""
用户 请求体模型
"""

from pydantic import (
    BaseModel,
    Field,
)


class UserRegisterRequest(BaseModel):
    """ 用户注册 请求体 """

    username: str = Field(..., title="用户名", min_length=3, max_length=20)
    password: str = Field(..., title="密码", min_length=3, max_length=20)
    re_password: str = Field(..., title="确认密码", min_length=3, max_length=20)
